package org.shj.pattern.strategy;

import org.shj.pattern.simplefactory.Cash;
import org.shj.pattern.simplefactory.CashFactory;

public class CashContext {

	private Cash cash;
	
	public CashContext(String type){
		this.cash = CashFactory.createCashAccept(type);
	}
	
	public double getResult(double money){
		return cash.acceptCash(money);
	}
}
